package com.example.chatchatbackend.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.example.chatchatbackend.entity.dto.Products;
import com.example.chatchatbackend.entity.vo.response.ProductsVO;

import java.util.List;


/**
 * <p>
 *  服务类
 * </p>
 *
 * @author 丁真
 * @since 2024-10-28 05:03:47
 */
public interface ProductsService extends IService<Products> {

    List<Products> getAllProducts();

    ProductsVO insertProducts(ProductsVO productsVO);

    List<ProductsVO> insertProductsList(List<ProductsVO> productsVOList);

    IPage<Products> pageThree(Integer pageNum, Integer pageSize);

    ProductsVO updateProducts(ProductsVO productsVO);

    void deleteByIds(List<Integer> ids);

    List<ProductsVO> findByIds(List<Integer> ids);
}
